<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Views/Shared/Site.Master" %>

<asp:Content runat="server" ContentPlaceHolderID="TitleContent">Create Environment from a CSV file</asp:Content>

<asp:Content runat="server" ContentPlaceHolderID="MainContent">
    <div class="info">
        <p>Supported file format is comma-separated text with headers. First column should contain the Candidate names with Environment name as the header. </p>
        <p>Second column should contain the independent variable value for each Candidate with the variable name as the header.</p>
        <p>Further columns should contain the Cue values with the Cue name as the header. Cue order is set according to the column order.</p>
        <p>Values are expected to be real numbers.</p>
        <p>After import has completed, please review the created Environment; don't forget to set Cue Attribute values.</p>
    </div>

    <%= Html.ValidationSummary("Environment creation was unsuccessful. Please correct the errors and try again.") %>
    <% using (Html.BeginForm("Import", "Environments", FormMethod.Post, new { enctype = "multipart/form-data" })) { %>
        <fieldset>
            <legend>Choose CSV file</legend>
            <p><input type="file" id="file" name="file" size="50"/></p>
            <p><input type="submit" value="Upload file" /></p>        
        </fieldset>
    <% } %>   
</asp:Content>
